<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>华猫商城</title>
		<style></style>
		<link href="../css/jquery.validator.css" rel="stylesheet">
		<link href="../css/common.css" rel="stylesheet">

		<link href="../plugin/userLib/css/user.css" rel="stylesheet">
		<link href="../plugin/userLib/css/userinfo.css" rel="stylesheet">
		<link href="../plugin/userLib/css/my_user.css" rel="stylesheet">
		<link href="../css/base.css" rel="stylesheet">
		<style>

		</style>
	</head>

	<body>
		<div id="header"></div>
		<div id="headerBox"></div>
		<!--<div id="nav_menu"></div>-->
		<div class="ZZHT-wrap">
			<div class="ZZHT-header" style="border-bottom: 1px solid #ffffff;">
				<div class="ZZHT-shop-nav">
					<div class="ZZHT-nav-box">
						<a href="#">
							<li class="liselect ZZHT-lfloat ZZHT-nav-boxa">商城商家</li>
						</a>
						<div class="ZZHT-clear"></div>
					</div>
				</div>
				<div class="ZZHT-clear"></div>
			</div>
			<div class="ZZHT-main">
				<div id="onLine_left"></div>
				<div class="ZZHT-content">
					<!--<div class="user_top">
						<div class="fl" style="margin-bottom:20px;">
							<img src="../plugin/userLib/img/Head_portrait.png" onerror="javascript:this.src='../plugin/userLib/img/Head_portrait.png'" class="headImg" alt="" width="70px;"/>
						</div>
						<div class="ZZHT-user-content fl headPhoto">
							<h3>{{info.loginName}}</h3>
							<div class="change_info">修改资料</div>
						</div>
						<div class="fr myInfo">
							<h3>我的消息</h3>
							<ul>
								<li class="info_no">哎呦，没有新消息哟~</li>
								<li class="info_yes"><a href="msgList.html">您有未读消息（<span></span>）</a></li>
							</ul>
						</div>
					</div>-->
					<div class="ZZHT-user-head clearfix" style="margin-top:20px;"><span class="left fl">商家账户</span></div>
					
					<div style="margin-bottom: 2px;">
						<div class="ZZHT-user-content" style="padding-top: 17px;">
							<div class="user-item">
								<div class="title">现金余额</div>
								<div class="price">{{yue.cash||0}}</div>
								<div class="trigger">
									<a href="deposit.html">赎回</a>
									<a href="recharge.html">充值</a>
									<a href="9.html">查看记录</a>
								</div>
							</div>
							<div class="user-item">
								<div class="title">华宝余额</div>
								<div class="price">{{yue.kaiyuan||0}}</div>
								<div class="trigger">
									<a href="depositKaiyuan.html">赎回</a>
									<a href="01_11.html">查看记录</a>
								</div>
							</div>
							<div class="user-item">
								<div class="title">华宝货款</div>
								<div class="price">{{yue.kaiyuanTurnover||0}}</div>
								<div class="trigger">
									<a href="depositKaiyuanTurn.html">赎回</a>
									<a href="11.html">查看记录</a>
								</div>
							</div>
							<div class="user-item">
								<div class="title">库存积分</div>
								<div class="price">{{yue.stockScore||0}}</div>
								<div class="trigger">
									<a href="01-2.html">申请库存</a>
									<a href="01-1.html">赠送积分</a>
									<a href="10.html">查看记录</a>
								</div>
							</div>
						</div>
						<!--<div class="ZZHT-user-content">
							<div class="user-item">
								<div class="title">积分</div>
								<div class="price">{{yue.score||0}}</div>
								<div class="trigger">
									<a href="01-1.html">赠送积分</a>
								</div>
							</div>
							<div class="user-item" v-if="yue.freezeScore!=0">
								<div class="title">待发积分</div>
								<div class="price">{{yue.freezeScore||0}}</div>
								<div class="trigger">
									<a href="#none">查看记录</a>
								</div>
							</div>
							<div class="user-item">
								<div class="title">现金余额</div>
								<div class="price">{{yue.cash||0}}</div>
								<div class="trigger">
									<a href="deposit.html">赎回</a>
									<a href="recharge.html">充值</a>
								</div>
							</div>
						</div>-->
					</div>
					
					<div class="ZZHT-user-head clearfix"><span class="left fl">当前账单</span>
						<em>年月</em></div>
					<div class="ZZHT-user-content">
						<table class="ZZHT-order-list">
							<thead>
								<tr class="head">
									<th>账户</th>
									<th>现金账户</th>
									<th>华宝账户</th>
									<th>华宝贷款账户</th>
									<th>库存积分</th>
									<th>待发积分</th>
								</tr>
							</thead>
							<tbody class="j-order-row">
								<tr class="order-head">
									<td>
										累计支入 </td>
									<td>
										{{zrzc.scoreIn}} </td>
									<td>
										{{zrzc.freezeScoreIn}} </td>
									<td>
										{{zrzc.kaiyuanIn}} </td>
									<td>
										{{zrzc.cashIn}} </td>
									<td>
										{{zrzc.freezeCashIn}} </td>
								</tr>
								<tr class="order-head">
									<td>
										累计支出 </td>
									<td>
										{{zrzc.scoreOut}} </td>
									<td>
										{{zrzc.freezeScoreOut}} </td>
									<td>
										{{zrzc.kaiyuanOut}} </td>
									<td>
										{{zrzc.cashOut}} </td>
									<td>
										{{zrzc.freezeCashOut}} </td>
								</tr>
							</tbody>
						</table>
					</div>

				</div>
			</div>
			<div style="clear:both;"></div>
			<br>
		</div>
		<!--<div id="ck1"></div>-->
		<div id="ck3"></div>

		<script src="../js/jquery.min.js"></script>
		<script src="../js/vue.min.js"></script>
		<script src="../plugin/layer/layer.js"></script>
		<script type="text/javascript" src="../js/ljf_base.js"></script>

		<script type="text/javascript">
			if(!localStorage.userId){
				window.location.href="../view/login.html?loginType=online";
			}
			var vm = new Vue({
				el:'.ZZHT-main',
				data:{
					UA : JSON.parse(localStorage.userInfo),
					info:{},
					yue:{},
					zrzc:{}
				}
			});
			$.ajax({//获取用户信息 头像等
				type: "get",
				url: SURL + "sktShops/findByUserId",
				data: {
					"userId":localStorage.userId,
				},
				dataType: 'json',
				success: function(res) {
					console.log(res);
					if(res.messageCode==200){
						vm.info = res.entity[0];
					}else{
						layer.msg(res.message);
					}
				}
			});
			$.ajax({//获取用户余额
				type: "get",
				url: SURL + "sktShops/findByUserIdMn",
				data: {
					"userId":localStorage.userId,
				},
				dataType: 'json',
				success: function(res) {
					console.log(res);
					if(res.messageCode==200){
						vm.yue = res.entity[0];
					}else{
						layer.msg(res.message);
					}
				}
			});
			$.ajax({//获取用户账单 支入支出
				type: "get",
				url: SURL + "sktShops/findByUserIdZrZc",
				data: {
					"userId":localStorage.userId,
				},
				dataType: 'json',
				success: function(res) {
					console.log(res.entity);
//					if(res.messageCode==200){
//						vm.zrzc = res.entity[0];
//					}else{
//						layer.msg(res.message);
//					}
				}
			});
		</script>
	</body>

</html>